﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using jiaju.Models;
using jiaju.Areas.Back.Models.DAL;
using jiaju.Models.DBModel;

namespace jiaju.Areas.Back.Controllers
{
    [Authorize]
    public class HomInfoController : Controller
    {
        // GET: Back/HomeInfo
        public ActionResult Index()
        {
            //企业信息管理
            HomeInfo hom = HomeInfoService.GetList();
            ViewBag.A = hom;
            return View();
        }
        public ActionResult EditDel(HomeInfo hom)
        {
            int n = HomeInfoService.EditList(hom);
            if (n > 0)
            {
                return Json(new { success = true, msg = "修改成功" });
            }
            else
            {
                return Json(new { success = false, msg = "修改失败" });
            }
        }
    }
}